package com.crl.net.decoder
{
	public class TransDecoderManager
	{
		public function TransDecoderManager()
		{
		}
		public function register(decdoer:TransDecoder):void{
			var types:Vector.<int>=decdoer.keys;
			var func:Function;
			for each(var type:int in types){
				func=decdoer["f_"+type];
				if(func==null){
					continue;
				}
				add(type,func);
			}
		}
		
		public function unregister(decdoer:TransDecoder):void{
			var types:Vector.<int>=decdoer.keys;
			var func:Function;
			for each(var type:int in types){
				func=decdoer["f_"+type];
				if(func==null){
					continue;
				}
				remove(type,func);
			}
		}
		
		
		protected function add(code:int,func:Function):void{
			//todo;
		}
		
		protected function remove(code:int,func:Function):void{
			//todo;
		}
	}
}